<?php

require_once('..\..\app\models\Resources.php');
require_once('..\..\app\models\conn.php');

	//get the q parameter from URL
	$id=$_GET["id"];
	$area=$_GET["area"];
	$time=$_GET["time"];
	$indicator=$_GET["indicator"];
	$value=$_GET["value"];
	
	$item = array("id"=>$id,"area"=>$area,"time"=>$time,"indicator"=>$indicator,"value"=>$value,"p5"=>"xxx");
	$resources = new Resources();
	$resources->update($item);
?>